import LayoutStore from './modules/layout'
import {createContext,useContext} from 'react'
import {observer} from 'mobx-react-lite'
import MenuStore from './modules/menuList'

const  RootStore={
    layoutStore:LayoutStore,
    menuStore:MenuStore
}

const context=createContext(RootStore)

export const useStore=()=>useContext(context)
export {observer}
